package web;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import entity.User;

import service.UserService;
import util.ServletUtil;

public class projectServlet extends HttpServlet {

	
	private static final long serialVersionUID = 1L;

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		
		UserService us=new UserService();
		List<User> userlist=us.findAll();
		ServletUtil.getSession(request).setAttribute("userlist", userlist);
		
		request.getRequestDispatcher("WEB-INF/views/new_project.jsp").forward(request, response);
		


	}

}
